Skip to content

chore(redundancy): increment fetchedCnt before closing wait channel#5505

Open
martinconic wants to merge 1 commit into
masterfrom
fix/redundancy-getter-fetchedcnt-race
Open

chore(redundancy): increment fetchedCnt before closing wait channel#5505
martinconic wants to merge 1 commit into
masterfrom
fix/redundancy-getter-fetchedcnt-race

Conversation

@martinconic

@martinconic martinconic commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

Independent ordering-correctness change in decoder.fetch().
On the successful-retrieval path the per-shard wait channel was closed before fetchedCnt was incremented

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

AI Disclosure

  • This PR contains code that has been generated by an LLM.
  • I have reviewed the AI generated code thoroughly.
  • I possess the technical expertise to responsibly review the code generated in this PR.

@martinconic martinconic self-assigned this Jun 19, 2026
@martinconic martinconic added this to the 2026 milestone Jun 19, 2026
@acud

acud commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

is this not covered by this PR? #5449

@martinconic

Copy link
Copy Markdown
Contributor Author

is this not covered by this PR? #5449

Seeing the other efforts maybe this is not the fix for the flaky pkg/file/redundancy/getter failures and maybe 5449 fixes the underlying issue. This is a smaller, defensive ordering improvement that could stand on its own.

@martinconic martinconic changed the title fix(redundancy): increment fetchedCnt before closing wait channel chore(redundancy): increment fetchedCnt before closing wait channel Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants